package shared.plotly.element

import dataclass.data
import java.lang.{Integer => JInt, Double => JDouble, Boolean => JBoolean}

@data class TextFont(family: Option[String],
                     size: Option[Double],
                     color: Option[Color])

object TextFont {

  def apply(
             family: String = null,
             size: JDouble = null,
             color: Color = null
           ) = new TextFont(
    Option(family),
    Option(size).map(x => x),
    Option(color)
  )

}
